// 该文件专门用于创建整个应用的路由器
import Vue from "vue";
import VueRouter from "vue-router";

Vue.use(VueRouter);
export default new VueRouter({
  routes: [
    {
      path: "/",
      redirect: "/cesium",
    },
    {
      path: "/index",
      name: "Index",
      component: () => import("../views/IndexView.vue"),
    },
    {
      path: "/cesium",
      name: "cesium",
      component: () => import("../views/cesium/cesium.vue"),
    },
    {
      path: "/dictionary",
      name: "dictionary",
      component: () => import("../views/dictionary/dictionary.vue"),
    },
  ],
});
